#pragma warning(disable:4996)
#include<stdio.h>
#include<string.h>
int main()
{
	int length;
	char mid[50];
	memset(mid, '\0', 50);
	char arr[10] = "ab c";
	char* ret = strstr(arr, " ");
	if (!ret) {
		printf("No exist!\n");
		return;
	}
	else {
		length = ret - arr;
	//	printf("%d\n", length);
		strncpy(mid, arr, length);
	//	strcpy(arr, arr + length + 1);
	//	strcat(mid, arr);
		strcat(mid, arr + length + 1);
		printf("%s\n", mid);
	}
		
	return 0;
}	